//
//  YAODCatOilcell.swift
//  YDOAProduct
//
//  Created by YDWY on 2017/6/13.
//  Copyright © 2017年 Allen. All rights reserved.
//

import UIKit

class YAODCatOilcell: UITableViewCell {

    var index : Int = 0
    var callback : ((_ id: Int,_ index : Int)->Swift.Void)? = nil
    
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
    
    //MARK: -
    //MARK: 按钮点击
    @IBAction func btnClick(_ sender: Any) {
        if callback != nil {
            callback!(0, index)
        }
        
    }
    
}
